<?php  
class question extends CI_Controller {

	  function question()
         {
   parent::__construct();
   $this->load->model('common_model');
   $this->load->model('question_model');
   $this->load->helper("url_helper");
       session_start();

   // session_start();

       }


public function index()
	  {

	$result=$this->common_model->getKeywords('questions'); 
		$data['keywords']=$result;

		$course_details=$this->question_model->selectcoursename();
		 
      
      $data['course_details'] = '';
		if($course_details!=false)
		  {
       $data['course_details']=$course_details;
		  }
	  	 $this->load->view('question',$data);
	}


public function interviewQuest()
	  {
	$courseid=$_GET['courseid'];
          
         $questans = $this->question_model->getquestionans($courseid);
 
     
	     $data['questans'] = '';
		 if($questans!=false)
		  {
       $data['questans']=$questans;
		 }
	   $this->load->view('questanswer',$data);
		  
	}


}

 